<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Use getUserMedia with canvas</title>
    <link rel="stylesheet" href="../main.css">
</head>
<body>
    <div id="container">

        <h1>创建一个拍照室应用</h1>
        <p>捕捉照片到Canvas，使用Canvas API 绘制其中的一帧视频到屏幕上</p>
    
        <video autoplay></video>
        <button>开始捕捉</button>
        <canvas></canvas>
    
        <p>Draw a frame from the video onto the canvas element using the <code>drawImage()</code> method.</p>
    
      </div>
      <script src="../adapter.js"></script>
      <script src="main.js"></script>
</body>
</html>